//
//  CustomNavViewController.m
//  shengxian
//
//  Created by 杨笑 on 2016/10/20.
//  Copyright © 2016年 杨笑. All rights reserved.
//

#import "CustomNavViewController.h"
#import "FatherViewController.h"
@interface CustomNavViewController ()

@end

@implementation CustomNavViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"navBg"] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setShadowImage:[UIImage new]];
    self.navigationBar.barTintColor = [UIColor colorWithWhite:1 alpha:0.88];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], NSForegroundColorAttributeName, nil];
}

- (UIStatusBarStyle)preferredStatusBarStyle
{
    if ([self.presentedViewController isKindOfClass:[UIImagePickerController class]]) {
        return UIStatusBarStyleDefault;
    }
    return UIStatusBarStyleLightContent;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
